package com.kantboot.api.lbs.controller;

import com.kantboot.api.lbs.service.IApiLbsAdService;
import com.kantboot.util.common.result.RestResult;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api-lbs-web/ad")
public class ApiLbsAdController {

    @Resource
    private IApiLbsAdService service;

    /**
     * 根据经纬度获取地理位置
     */
    @RequestMapping("/getByLngAndLat")
    public RestResult getByLngAndLat(@RequestParam(value = "lng") String lng, @RequestParam(value = "lat") String lat) {
        return RestResult.success(service.getByLngAndLat(lng, lat), "getSuccess","获取成功");
    }


}
